package com;

import com.beans.User;
import com.beans.UserController;
import com.beans.UserController2;
import com.beans.UserController3;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/7/17
 * \* Time: 14:07
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class App2 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        UserController3 userController3 = context.getBean("userController3", UserController3.class);
        userController3.sayHi();
    }
}
